package com.wellwan.cloud.configuration;

import feign.Feign;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * Copyright (C),微动天下
 * FileName: FeignDisableHystrixConfiguration
 * Author:   maokai
 * Date:     2020/2/29 14:40
 * Description: 为Feign 禁用Hystrix
 *  然后在 @FeignClient上 使用configuration属性 添加该类即可，全局禁用配置 feign.hystrix.enabled = false 即可
 */
//@Configuration
public class FeignDisableHystrixConfiguration {
    @Bean
    public Feign.Builder feignBuilder() {
        return Feign.builder();
    }
}
